﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupDetail.aspx.cs" Inherits="Manage_basisset_GroupDetail" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
     <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
     <script language="javascript" type="text/javascript">
        
         function checkForm() {
             var control = document.getElementById("txtname");
             if (control.value.length == 0) {
                 alert("名称不能为空！");
                 control.focus();
                 return false;
             }

         }
      
</script>

<style type="text/css">
<!--
* { margin:0; padding:0; font-size:12px; font-weight:normal; }
.jj  { font-weight:bolder!important; }
.box { border-top-color:#c00!important; }
.pr { color:#060!important; }
ol{list-style:none}
#tab_zzjs_1 { position:relative; width:98%; height:850px; padding-top:15px; margin:15px; overflow:hidden; }
#tab_zzjs_1 h3 { position:relative; z-index:2; float:left; height:14px; padding:0 7px 0 8px; margin-left:0px; border-left:solid 1px #ccc; border-right:solid 1px #fff; text-align:center; background:#fff; cursor:pointer; }
#tab_zzjs_1 h3.up { height:18px; padding:5px 7px 0 7px; margin:-6px 0 0 0; border:solid #060; border-width:1px 1px 0; color:#c00; }
#tab_zzjs_1 div { display:none; position:absolute; left:0; top:32px; z-index:1; width:98%; 
height:800px;  overflow:auto;
padding:5px; border:solid 1px #060; color:#666; }
#tab_zzjs_1 div.up { display:block; }

-->
</style>
</head>
<body leftmargin="8" topmargin="8" background='../skin/images/allbg.gif'>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
    <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center" >
        <tr>
            <td height="26" background="../skin/images/newlinebg3.gif">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center"><span style="font-size:14px; font-weight:bold">用户组详细信息</span></td>
                        <td  align="right"  style="width:60px">
                        <asp:Button ID="btnreturn" class="coolbg_add" runat="server" Text="返回列表" 
                                onclick="btnreturn_Click"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <table id="tbladdGroup"  runat="server" width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px;">
       <tbody style="width:100%">
        <tr bgcolor="#E7E7E7" style="width:100%">
          <td height="24" colspan="7" background="../skin/images/tbg.gif"><div align="left" class="STYLE4">
              用户组基本信息</div></td>
        </tr>
       
        <tr align='center' style="width:100%" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';" height="22" >
          <td width="13%" align="left">名称：</td>
           <td width="25%" align="left">
               <asp:TextBox ID="txtname" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td width="13%" align="left">备注：</td>
           <td width="25%" align="left">
               <asp:TextBox ID="txtRemark" runat="server" Width="350px"></asp:TextBox>
            </td>
          <td width="62%" align="center" colspan="3"><asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="return checkForm();false" onclick="btnSave_Click" /></td>
         
        </tr>
      </tbody> 
      </table>
     </ContentTemplate>
      <Triggers><asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" /></Triggers>
    </asp:UpdatePanel>
<!--  内容列表   -->
<input type="hidden" id="hidGroupid" value='<%=GroupId %>' />
    <div id="tab_zzjs_1">
    
     <h3>用户成员</h3>
     <div src="GroupUsers.aspx?MenuId=<%=cMenuId %>">
         <iframe id="GroupUsers" width="100%" height="100%" frameborder="0" scrolling="auto" ></iframe>
     </div>
    <h3>权限</h3>
    <div src="GroupPermision.aspx?MenuId=<%=cMenuId %>">
         <iframe width="100%" height="100%" frameborder="0" scrolling="auto" ></iframe>
    </div>
     <h3>课程学习时间设置</h3>
    <div src="GroupStudyTimeSet.aspx?MenuId=<%=cMenuId %>">
         <iframe width="100%" height="100%" frameborder="0" scrolling="auto" ></iframe>
    </div>
  </div>  
    </form>
   <script type="text/javascript">
<!--
       function Pid(id, tag) {

           if (!tag) {
               return document.getElementById(id);
           }
           else {

               var obj = document.getElementById("tab_zzjs_1");
               if (obj) {
                   return obj.getElementsByTagName(tag);
               }
           }
       }
       function tab_zzjs(id, hx, box, iClass, s, pr, classid) {
           var hxs = Pid(id, hx);
           var boxs = Pid(id, box);
           if (!iClass) { // 如果不指定class，则：
               boxsClass = boxs; // 直接使用box作为容器
           }
           else { // 如果指定class，则：
               var boxsClass = [];
               for (i = 0; i < boxs.length; i++) {
                   if (boxs[i].className.match(/\btab\b/)) {// 判断容器的class匹配
                       boxsClass.push(boxs[i]);
                   }
               }
           }
           if (!pr) { // 如果不指定预展开容器，则：
               go_to(0); // 默认展开序列
               yy();
           }
           else {
               go_to(pr);
               yy();
           }
           function yy() {
               for (var i = 0; i < hxs.length; i++) {
                   hxs[i].temp = i;
                   if (!s) {// 如果不指定事件，则：
                       s = "onmouseover"; // 使用默认事件
                       hxs[i][s] = function () {
                           go_to(this.temp);
                       }
                   }
                   else {
                       hxs[i][s] = function () {
                           go_to(this.temp);
                       }
                   }
               }
           }
           function go_to(pr) {
               for (var i = 0; i < hxs.length; i++) {
                   if (!hxs[i].tmpClass) {
                       hxs[i].tmpClass = hxs[i].className += " ";
                       boxsClass[i].tmpClass = boxsClass[i].className += " ";
                   }
                   if (pr == i) {
                       var ifream = boxsClass[i].getElementsByTagName("iframe");
                       var src = boxsClass[i].getAttribute("src");
                       var hidclassid = document.getElementById(classid);
                       if (ifream.length > 0)
                           ifream[0].src = src + "&id=" + hidclassid.value;
                       hxs[i].className += " up"; // 展开状态：标题
                       boxsClass[i].className += " up"; // 展开状态：容器
                   }
                   else {
                       hxs[i].className = hxs[i].tmpClass;
                       boxsClass[i].className = boxsClass[i].tmpClass;
                   }
               }
           }
       }
       tab_zzjs("tab_zzjs_1", "h3", "div", "", "onclick", 0, "hidGroupid"); 
    //-->
</script>
</body>
</html>
